time: 2021.3
# -*- coding: utf-8 -*-
# @Time    : 2021/4/14 19:40
# @Author  : luogan
# @Email   : 468640092@qq.com
# @File    : 2021_zuoye.py
# @Software: PyCharm.

#导入random,string模块
import random
import string
from pycharm_code import luogan
while 1:
    N = input("请输入你要生成激活码的数量:")
    if N.isdigit():           #判断它是否为数字类型
        N = int(N)
        for i in range(N):
            print(luogan.a)
    else:
        print(f"你的输入不合法，请重新输入")